<?php 
require '../config.php';
 
$cedula = mysql_real_escape_string($_POST['cedula']);  
  
$result = mysql_query('select nombres,apellidos from clientes where cedula = "'. $cedula .'"');  
 
if(mysql_num_rows($result)>0){  
	 $row = mysql_fetch_array($result);
	 echo($row['nombres']. " ". $row['apellidos']);			
}else{  
     echo 0;  
}
?> 